import ReactDOM from 'react-dom';
import React from 'react';
import { Provider } from "react-redux";

import Routes from '../routes/';
import configureStore from "../store/configureStore";
import wpo from '@ali/retcodelog';
import rlog from "../utils/rlog";
window._rlog = rlog;
wpo.setConfig({
	//抽样分母，1代表100%上报，10代表10%上报，100代表1%上报
	sample: 1,
	// spmId必须设置,如果没写默认值,会自动抓页面的spm
	spmId: 'app.-24',
	// weex容器内上报必须配置
	request: '',
	// 取nick name需要用到cookie
	cookie: ''
});
rlog("_index");

const store = configureStore();

ReactDOM.render(
	<div>
		<Provider store={store}>
			<div>
				<Routes />
			</div>
		</Provider>
	</div>,
	document.getElementById('dingapp'));


